import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Axios from 'axios'
import { 
  Toast, Switch, ActionSheet, Popup, DatetimePicker, Picker,
  SwipeCell, Button, List , Step ,Steps, Field, CellGroup, 
  Calendar, Cell, Search,Swipe,SwipeItem,Checkbox, CheckboxGroup,Tab, Tabs,RadioGroup, Radio,Uploader,Loading,Dialog
} from 'vant'

Vue.use(Toast)
Vue.use(Switch)
Vue.use(ActionSheet)
Vue.use(Popup)
Vue.use(DatetimePicker)
Vue.use(Picker)
Vue.use(SwipeCell)
Vue.use(Button)
Vue.use(List)
Vue.use(Step)
Vue.use(Steps)
Vue.use(Field)
Vue.use(CellGroup)
Vue.use(Calendar)
Vue.use(Cell)
Vue.use(Search)
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(Uploader);
Vue.use(Loading);
Vue.use(Dialog);
import 'vant/lib/index.css';
import '@/assets/iconfont/iconfont.css';
import '@/assets/common.less';
// axios配置
Axios.defaults.headers.post['Content-Type'] = 'application/json';

Vue.config.productionTip = false
Vue.prototype.$http = Axios

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
